<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>

<div class="voc-tabs tabs-create">
	<c:if test='${loginOkay == ""}'>
		<div class="error-message">Error: you need to log in to save this form</div>
	</c:if>
	<form:form method="post" action="/learnlang/vocabularyPage/vocList" modelAttribute="newVocabularyListInfo">
	<table>
		<tr><td>Name</td><td><form:input type="text" maxlength="50" path="name" size="30" value=""/></td><td> e.g. my first vocabulary list</td></tr>  
		<tr><td>Tags</td><td><form:input type="text" maxlength="50" path="tags" size="30" value=""/></td><td> comma separated e.g. basic, home, objects</td></tr>  
		<tr><td>From language</td><td><form:select path="fromLang"><c:out escapeXml="false" value="${html_option_languages_list}"/></form:select></td><td>please select the from language, see below</td></tr>  
		<tr><td>To language</td><td><form:select path="toLang"><c:out escapeXml="false" value="${html_option_languages_list}"/></form:select></td><td>please select the language</td></tr>  
	</table>
	<form:textarea path="wordsList" class="vocabulary-list"/>
	
	<input type="submit" class="form-submit save-submit" value="Save"/>
	<input type="button" value="Clear all fields" onclick="clearNewVocabulary()"/>
	</form:form>
</div>
